<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<f:view>
	<h:head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
		<title>Index</title>
		<style type="text/css">
.invisivel {
	display: none;
}
</style>
	</h:head>
	<h:body>
		<h:form>
			<p:menubar>
				<p:submenu label="Cliente" styleClass=''>
					<f:attribute name="rotina" value="cliente"></f:attribute>
					<p:menuitem value="Novo" url="#"
						isRendered='#{menuBean.temPermissao}'>
						<f:attribute name="rotina" value="cliente_novo"></f:attribute>						
					</p:menuitem>
					<p:menuitem value="Atualizar" url="#" />
					<p:menuitem value="Consultar" url="#" />
					<p:separator />
					<p:submenu label="Cartão">
						<p:menuitem value="Novo" url="#" />
						<p:menuitem value="Desativar" url="#" />
						<p:menuitem value="Consultar" url="#" />
					</p:submenu>
					<p:separator />
					<p:submenu label="Cheque">
						<p:menuitem value="Novo" url="#" />
						<p:menuitem value="Desativar" url="#" />
						<p:menuitem value="Consultar" url="#" />
					</p:submenu>
				</p:submenu>
				<p:submenu label="Conta" icon="ui-icon-document" styleClass="">
					<p:menuitem value="Abertura" url="Conta/abrirConta.xhtml" />
					<p:menuitem value="Atualizar" url="#" />
					<p:menuitem value="Desativar" url="#" />
					<p:menuitem value="Consultar" url="Conta/consultarConta.xhtml" />
					<p:separator />
					<p:submenu label="Limite">
						<p:menuitem value="Novo" url="Limite/adicionarLimite.xhtml" />
						<p:menuitem value="Desativar" url="#" />
						<p:menuitem value="Consultar" url="#" />
					</p:submenu>
					<p:separator />
					<p:submenu label="Cartão">
						<p:menuitem value="Novo" url="#" />
						<p:menuitem value="Desativar" url="#" />
						<p:menuitem value="Consultar" url="#" />
					</p:submenu>
				</p:submenu>
				<p:submenu label="Operações">
					<p:menuitem value="Emprestimo" url="#" />
					<p:menuitem value="Transferência"
						url="Transferencia/InserirTransferencia.xhtml" />
					<p:menuitem value="Pagamento" url="Pagamento/realizarPagamento.xhtml" />
					<p:menuitem value="Extrato" url="#" />
				</p:submenu>
				<p:submenu label="RH" icon="ui-icon-document" styleClass="">
					<p:submenu label="Funcionario">
						<p:menuitem value="Novo" url="#" />
						<p:menuitem value="Atualizar" url="#" />
						<p:menuitem value="Desativar" url="#" />
						<p:menuitem value="Consultar" url="#" />
					</p:submenu>
					<p:separator />
					<p:submenu label="Setor">
						<p:menuitem value="Novo" url="#" />
						<p:menuitem value="Atualizar" url="#" />
						<p:menuitem value="Desativar" url="#" />
						<p:menuitem value="Consultar" url="#" />
					</p:submenu>
					<p:separator />
					<p:submenu label="Cargo">
						<p:menuitem value="Novo" url="#" />
						<p:menuitem value="Atualizar" url="#" />
						<p:menuitem value="Desativar" url="#" />
						<p:menuitem value="Consultar" url="#" />
					</p:submenu>
				</p:submenu>

				<p:submenu label="Acesso" icon="ui-icon-document" styleClass="">
					<p:submenu label="Perfil">
						<p:menuitem value="Novo" url="#" />
						<p:menuitem value="Atualizar" url="#" />
						<p:menuitem value="Desativar" url="#" />
						<p:menuitem value="Consultar" url="#" />
					</p:submenu>
					<p:separator />
					<p:submenu label="Rotina">
						<p:menuitem value="Novo" url="#" />
						<p:menuitem value="Atualizar" url="#" />
						<p:menuitem value="Desativar" url="#" />
						<p:menuitem value="Consultar" url="#" />
					</p:submenu>
					<p:separator />
					<p:submenu label="Permissões" />
				</p:submenu>

				<p:submenu label="Dados" icon="ui-icon-document" styleClass="">
					<p:submenu label="Cidade">
						<p:menuitem value="Novo" url="#" />
						<p:menuitem value="Atualizar" url="#" />
						<p:menuitem value="Desativar" url="#" />
						<p:menuitem value="Consultar" url="#" />
					</p:submenu>
					<p:separator />
					<p:submenu label="Estado">
						<p:menuitem value="Novo" url="#" />
						<p:menuitem value="Atualizar" url="#" />
						<p:menuitem value="Desativar" url="#" />
						<p:menuitem value="Consultar" url="#" />
					</p:submenu>
					<p:separator />
					<p:submenu label="Serviços">
						<p:menuitem value="Novo" url="#" />
						<p:menuitem value="Atualizar" url="#" />
						<p:menuitem value="Desativar" url="#" />
						<p:menuitem value="Consultar" url="#" />
					</p:submenu>
					<p:submenu label="Pacote de Serviços">
						<p:menuitem value="Novo" url="#" />
						<p:menuitem value="Atualizar" url="#" />
						<p:menuitem value="Desativar" url="#" />
						<p:menuitem value="Consultar" url="#" />
					</p:submenu>
					<p:submenu label="Banco">
						<p:menuitem value="Novo" url="#" />
						<p:menuitem value="Atualizar" url="#" />
						<p:menuitem value="Desativar" url="#" />
						<p:menuitem value="Consultar" url="#" />
					</p:submenu>
					<p:submenu label="Agência">
						<p:menuitem value="Novo" url="#" />
						<p:menuitem value="Atualizar" url="#" />
						<p:menuitem value="Desativar" url="#" />
						<p:menuitem value="Consultar" url="#" />
					</p:submenu>
					<p:submenu label="Informações" />
				</p:submenu>
			</p:menubar>
			<f:facet name="label">
				<h:commandLink action="#{loginBean.efetuaLogoff}">
					<h:panelGroup>
						<h:outputText value="Sair" />
					</h:panelGroup>
				</h:commandLink>
			</f:facet>
		</h:form>

	</h:body>
</f:view>

</html>